package ms_am;

/**
 * @Author zkh
 * @Date 2023/2/22 21:22
 * @PackageName:ms_am
 * @ClassName: Product
 * @Description: 定义产品价格、折扣
 * @Version 1.0
 */
public enum Product {
    APPLE(8.00), // 苹果单价
    STRAWBERRIES(13.00), //草莓单价
    MANGOES(20.00), //芒果单价

    CONSUME(100.00), // 优惠门槛

    REDUCE(10.00),//优惠金额
    DISCOUNT(0.80); //折扣


    private final double price;

    Product(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }


    enum Type {
        APPLE,
        STRAWBERRY,
        MANGO
    }



}
